﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2">
  <class name="EnetaMvc.Core.Domain.News.Blog,EnetaMvc.Core" table="blog">

    <id name="Id" column="blog_id" type="long">
      <generator class="identity"/>
    </id>

    <property name="Name" column="blog_name" type="string" />
    <property name="Url" column="blog_url" type="string" />
    <property name="RssUrl" column="rss_url" type="string" />
    <property name="FirstPostDate" column="first_post_date" type="DateTime" />
    <property name="Description" column="description" type="string" />
    <property name="PublishingStateDate" column="publishing_state_date" type="DateTime" />
    <property name="PublishingStateComment" column="publishing_state_comment" type="string" />
    <property name="Created" column="created" type="DateTime" />

    <many-to-one name="PublishingState" column="publishing_state_id" class="EnetaMvc.Core.Domain.Content.PublishState,EnetaMvc.Core" />
    <many-to-one name="CreatedBy" column="created_by_id" class="EnetaMvc.Core.Domain.Common.User,EnetaMvc.Core" />
    <many-to-one name="PublishingStateBy" column="publishing_state_by_id" class="EnetaMvc.Core.Domain.Common.User,EnetaMvc.Core" />
  </class>
</hibernate-mapping>